import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/home/controller/share_moto_controller.dart';
import 'package:dmz/business/home/widgets/share_contacts_widgets.dart';
import 'package:dmz/business/home/widgets/share_main_widgets.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ShartContactsPage extends BaseStatefulWidget<ShareMotoController> {
  const ShartContactsPage({super.key});

  @override
  String titleString() => '选择联系人'.tr;

  @override
  bool delectControll() => false;

  @override
  Widget buildContent(BuildContext context) {
    controller.getScrollingKey();
    return Column(children: [
      ShareVontactsWidgets.searchWidget(controller.searchWithStr),
      Expanded(
          child: ShareMotoWidgets.backGroundWidget(controller.showShare
              ? ShareVontactsWidgets.searchResultWidet()
              : Stack(alignment: Alignment.topRight, children: [
                  ShareVontactsWidgets.mainListView(controller),
                  ShareVontactsWidgets.sidebarWidget(controller)
                ])))
    ]);
  }
}
